<?php
namespace API\Controller;
use Think\Controller;
class ManageorderController extends CommonController {
	//载入订单信息 
	// true表示载入成功 false失败
	//标识码 0表示失败 1表示成功
	public function loadorder(){
		$Order = M('Orderlist');
		$Orderdata = $Order->order("id ASC")->select();
		if (empty($Orderdata)) {
		             $this->response("载入订单信息",false,0,"订单信息为空");	
		}else{
			$Orderdatalist = array();
			foreach ($Orderdata as $value) {
				$value['goodslist'] = json_decode($value['goodslist'],true);		
				$Orderdatalist[ ] = $value;
			}
			$this->response("载入一级商品分类信息",true,1,$Orderdatalist);
		}
	}
	
}